#ifndef CONNECTIONWIDGET_H
#define CONNECTIONWIDGET_H

#include "include.h"

class QSqlDatabase;

class ArbreBdd: public QWidget
{
    Q_OBJECT

public:
    ArbreBdd(QWidget *parent = 0);
    QSqlDatabase currentDatabase() const;

public slots:
    void refresh();

private:
    void setupUi();
    QString bddNomAffiche(QSqlDatabase db) const;

    QVBoxLayout* vbPrincipale;
    QAction* refreshAction;
    QTreeWidget* tree;
    QString bddActive;
};

#endif
